﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo3
{
    class Program
    {
        static void Main(string[] args)
        {
                Console.WriteLine("请输入要计算的形状：1.圆形  2.正方形");
                string str = Console.ReadLine();
                if (str == "圆形")
                {
                    Circle C = new Circle();
                    C.GetArea();
                }
                else if (str == "正方形")
                {
                    Square S = new Square();
                    S.GetArea();
                }
        }
    }
}
